package com.ydd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ydd.dto.LoginDTO;
import com.ydd.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


public interface SysUserMapperMB {
    //后期优化
    @Select("select * from sys_user where password=#{password} and  login_name =#{loginName}")
    SysUser getUserPasswordAndName(LoginDTO dto);

    //后期优化
    @Select("select * from sys_user where id=#{id}")
    SysUser getUserById(Long id);
}
